package com.shop.enums;

import lombok.Getter;

/**
 * description: 商品状态
 *
 * @author zhaoxiaozhao（xiaozhao.zhao@ucarinc.com）
 * @version 1.0
 * @date 2018/10/12 15:42
 **/
@Getter
public enum ProductStatuEnum {
    PRODUCT_OBTAIN(1,"下架"),
    PRODUCT_SHELF(0,"上架"),;

    private Integer code;
    private String message;

    ProductStatuEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public boolean equals(Integer code){
        if(null == code){
            return false;
        }
        if(this.code == code){
            return true;
        }
        return false;
    }
}
